package com.moon.cofig;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

//创建配置文件 加载的Controller对应的Bean
@Configuration
@ComponentScan("com.moon.controller")
//开启后才可接收JSON数据
@EnableWebMvc
public class SpringMvcConfig {

}
